/**
* @Author: Zhengfeng.Yao
* @Date:   2017-01-23 14:12:23
* @Last modified by:   Zhengfeng.Yao
* @Last modified time: 2017-02-09 14:49:45
*/

import React from 'react';
import './riskIcon.less';

export default function RiskIcon({risk}) {
  return (
    <div className={`aegis-riskIcon aegis-riskIcon-${risk.riskStatus}`}>
      <span className="riskScore">{risk.riskScore}</span>
      <span className="riskStatus">{risk.riskStatus.toUpperCase()}</span>
    </div>
  );
}
